dfa to re converstion